package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.ReporteTotalProtegidosSo3Dto;
import org.springframework.jdbc.core.RowMapper;

public class ReporteTotalProtegidosSo3Mapper  implements
		RowMapper<ReporteTotalProtegidosSo3Dto> {

	public ReporteTotalProtegidosSo3Dto mapRow(ResultSet rs, int row)
			throws SQLException {
		ReporteTotalProtegidosSo3Dto dto = new ReporteTotalProtegidosSo3Dto(); 
		dto.setTotProt(rs.getInt(1));
		dto.setTotNoProt(rs.getInt(2));
		dto.setTotal(rs.getInt(3));
		dto.setPeriodo(rs.getString(4));
		return dto;
	}

}
